const state = {
	pageInfo: {
		total: 0,
		pageSize: 10,
		currentPage: 1
	}
};

const mutations = {
	SET_CURRENT_PAGE(target, currentPage) {
		target.pageInfo.currentPage = currentPage;
	},
	SET_PAGE_SIZE(target, pageSize) {
		target.pageInfo.pageSize = pageSize;
	},
	SET_PAGE_TOTAL(target, total) {
		target.pageInfo.total = total;
	}
};

export default {
	// namespaced: true,
	state,
	mutations
};
